package com.jyw.business.obstacles.domain.vo.web;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyw.common.annotation.Conversion;
import com.jyw.common.constant.SysDictTypeConstant;
import com.jyw.common.enums.ConversionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author w_q
 * @date 2023/8/1811:14
 * @Description:
 */
@Data
@ApiModel("审核处理过的工单返回VO")
public class ProcessedPageVO {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "故障描述")
    private String faultRemark;

    @ApiModelProperty(value = "工单号")
    private String orderNum;

    @ApiModelProperty(value = "审核状态：end_examine通过；no_examine驳回")
    @Conversion(value = ConversionType.DICT,dictType = SysDictTypeConstant.OBS_ORDER_EXAMINE)
    private String processValue;

    @ApiModelProperty("审核状态标签")
    private String processValueToName;

    @ApiModelProperty(value = "报修时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date examineTime;

    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date completeDate;

    @ApiModelProperty("处理人")
    private String makeUser;
}
